package com.yoda.common.exception;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException {
        private ErrorResult errorResult;
        public BusinessException(ErrorResult errorResult) {
            super(errorResult.getErrMessage());
            this.errorResult = errorResult;
        }
    }